/**
 * 
 */
package evolution;

/**
 * @author Alon Segal
 *
 */
public abstract class FitnessCalculator {

	protected BoardEvaluator be;
	
	/**
	 * 
	 */
	public FitnessCalculator(BoardEvaluator be) {
		this.be = be;
	}
	
	/**
	 * Calculates the fitness for the given individual
	 * @param in the individual
	 * @return the fitness
	 */
	public abstract double getFitness(Individual in);

}
